package com.test.qpbgboot.schedule.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.List;

@Data
public class OrderUpdateParam {
    @ApiModelProperty(value = "订单id")
    private Long id;
    @ApiModelProperty(value = "房间id", required = true)
    @NotNull(message = "房间id不能为空")
    private Long roomId;
    @ApiModelProperty(value = "陪玩id列表")
    private List<Long> escortIdList;
    @ApiModelProperty(value = "订单状态 10已创建 20已提交 30待付款 40已取消 50待参加 60已参加 70已评价 80待退款 90已结束",
            required = true)
    @NotBlank(message = "订单状态不能为空")
    private String orderStatus;
    @ApiModelProperty(value = "桌游内容")
    private String game;
    @ApiModelProperty(value = "额外说明")
    private String message;
    @ApiModelProperty(value = "店家说明")
    private String shopMessage;
    @ApiModelProperty(value = "预约日期", required = true)
    @NotNull(message = "预约日期不能为空")
    private LocalDate appointmentDate;
    @ApiModelProperty(value = "预约开始时间", required = true)
    @NotNull(message = "预约时间不能为空")
    private LocalTime startTime;
    @ApiModelProperty(value = "预约结束时间", required = true)
    @NotNull(message = "预约时间不能为空")
    private LocalTime endTime;
}
